package com.haier.dreambox.demo.bean.uplus;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.io.Serializable;

/**
 * Created by smalant on 14/12/30.
 */
@DatabaseTable
public class DeviceVersion implements Serializable {

    @DatabaseField(generatedId = true)
    public  transient int id;


    @DatabaseField(foreign = true, foreignAutoCreate = true, foreignAutoRefresh = true)
    public SmartLinkVersion smartlink;

    @DatabaseField
    public String eProtocolVer;

    public DeviceVersion(SmartLinkVersion smartlink, String eProtocolVer) {
        this.smartlink = smartlink;
        this.eProtocolVer = eProtocolVer;
    }

    public DeviceVersion() {
    }

    @Override
    public String toString() {
        return "DeviceVersion{" +
                "smartlink=" + smartlink +
                ", eProtocolVer='" + eProtocolVer + '\'' +
                '}';
    }
}
